how to write web service for API in c#

52

how to write web service for API in c# -

[HttpGet]
public IEnumerable<Employee> getEmployeeById( int id)
{
var Emp = from emp in getEmployees()
where emp.EmployeeId.Equals(id)
select emp;

return Emp.ToList<Employee>();
}

Comments

Submit
0 Comments